﻿/*
 * 进入邮箱页面之后，需要动态载入的模板资源
 */

/*************************************  读信页相关的模板文件  *****************************************/
// 普通模式和会话模式的读信页模板资源是一样的，
/*
var _mailReadTemplate = '<table cellpadding=0 cellspacing=0 style="border:0px;width:100%;"><tbody>'
	+'<tr><td colspan=3>'
	+'<dl id="read_mail_bar1" class="operate"></dl>'
	+'</td></tr>'
	+'<tr valign="top"><td>'
	+'<div id="dialog_read_hide" style="#{read_width}height:0px;font-size:0px;"></div>'
	+'<div id="dialog_read" class="#{read_style}">'
	// 目前只有sohu的才有广告(如果广告的宽度被设置为0，就不显示了)
	+'</div></td><td class="dialog_vline" style="#{read_isads}"></td><td style="background-color:#F5F4F4;#{read_isads}">'
	+'<div id="adsarea" class="adsbody">'
	+'<div class="top1"></div><div class="top2"></div>'
	+'<div id="right_ads1"><div class="top3"><img src="' + MailConst.ALL + '/sogou_ads.jpg" style="border: 0px;" /></div><div class="ads">#{read_ads1}</div></div>'
	+'<div id="right_ads2" style="display:none;"><div class="ads">#{read_ads2}</div></div>'
	+'<div class="bottom1"></div>'
	+'</div>'
	+'</td></tr>'
	+'<tr><td colspan=3>'
	+'<dl id="read_mail_bar2" class="operate2"></dl>'
	+'</td></tr>'
	+'</tbody></table>';
*/

	
var mailReadTemplate = '<div class="f-lf read-outer">'
	+'<div id="read_mail_bar1" class="operate read-page"></div>'
	// +'<div>'
	
	+'<table cellpadding=0 cellspacing=0 class="read-table"><tbody>'
	+'<tr><td colspan=3><div class="read-top-line"></div></td></tr>'
	+'<tr valign="top"><td>'
	+'<div id="dialog_read_hide" style="#{read_width}height:0px;font-size:0px;"></div>'
	+'<div id="dialog_read" class="#{read_style}">'
	// 目前只有sohu的才有广告(如果广告的宽度被设置为0，就不显示了)
	+'</div></td><td class="dialog_vline" style="#{read_isads}"></td><td style="background-color:#F5F4F4;#{read_isads}">'
	+'<div id="adsarea" class="adsbody">'
	+'<div class="top1"></div><div class="top2"></div>'
	+'<div id="right_ads1"><div class="top3"><img src="' + MailConst.ALL + '/sogou_ads.jpg" style="border: 0px;" /></div><div class="ads">#{read_ads1}</div></div>'
	+'<div id="right_ads2" style="display:none;"><div class="ads">#{read_ads2}</div></div>'
	+'<div class="bottom1"></div>'
	+'</div>'
	+'</td></tr>'
	+'<tr><td colspan=3><div class="read-bottom-line"></div></td></tr>'
	+'</tbody></table>'
	
	// +'</div>'
	+'<div id="read_mail_bar2" class="operate2 read-page"></div>'
	+'</div>';

	/*
	'<table cellpadding=0 cellspacing=0 style="border:0px;width:100%;"><tbody>'
	+'<tr valign="top"><td>'
	+'<div id="dialog_read_hide" style="#{read_width}height:0px;font-size:0px;"></div>'
	+'<div id="dialog_read" class="#{read_style}">'
	// 目前只有sohu的才有广告(如果广告的宽度被设置为0，就不显示了)
	+'</div></td><td class="dialog_vline" style="#{read_isads}"></td><td style="background-color:#F5F4F4;#{read_isads}">'
	+'<div id="adsarea" class="adsbody">'
	+'<div class="top1"></div><div class="top2"></div>'
	+'<div id="right_ads1"><div class="top3"><img src="' + MailConst.ALL + '/sogou_ads.jpg" style="border: 0px;" /></div><div class="ads">#{read_ads1}</div></div>'
	+'<div id="right_ads2" style="display:none;"><div class="ads">#{read_ads2}</div></div>'
	+'<div class="bottom1"></div>'
	+'</div>'
	+'</td></tr>'
	+'</tbody></table>';
	*/


// 垃圾举报提示层的模板文件
var mailSpamLayerTemplate = '<div>'
	+'<div class="spam-layer">'
	+'<div class="dd" id="#{did}"></div>'
	+'<div class="inner-ct" style="height:140px;" id="#{cid}">'
	
	+'#{is_sys_mail}'
	+'<dt class="t-txt">请选择举报信的垃圾类型：</dt>'
	+'<div>'
	
	+'<div><span><input type="radio" name="spamtype" checked value="" id="spamtype_1" /><label for="spamtype_1"> 广告邮件 </label></span> <span><input type="radio" name="spamtype" value="" id="spamtype_2" /><label for="spamtype_2"> 未曾订阅的期刊 </label></span></div>'
	+'<div><span><input type="radio" name="spamtype" value="" id="spamtype_3" /><label for="spamtype_3"> 欺诈邮件、反动信息 </label></span> <span><input type="radio" name="spamtype" value="" id="spamtype_4" /><label for="spamtype_4"> 其他邮件 </label></span></div>'
	
	+'</div>'
	
	/*
	+'<dt class="t-txt" style="margin-top:8px;">将其列入黑名单：</dt>'
	+'<div class="e-ct">'
	+'<div id="#{content_id}" style="margin:4px;">'
	+'#{spam_sender}'
	+'</div>'
	+'</div>'
	*/
	+'#{spam_sender}'
	
	+'<div style="text-align:center;margin-top:10px;"><input id="#{event_id}" class="yes" type="button" value=" 确　定 " style="cursor:pointer;" />　　<input class="yes" type="button" style="cursor:pointer;" value=" 取　消 " onclick="_dialog.closeCustom();" /></div>'
	
	+'</div>'
	+'</div>'
	+'</div>';

/******************************************* 地址簿 ******************************************/
var mailAddrCreateContactTemplate = '<div class="createcontact">'
	+'<div class="operate">'
	+'<div class="l-area title"><b>联系人</b>　<span class="bk cur-pt s_addr_main_page">[返回]</span></div>'
	+'</div>'
	// '<!-- 基本信息开始-->'
	+'<ul style="width:96%;"><dt>基本信息</dt>'
	+'<dd style="display:none;">姓　　名：'
	+'<input id="ncName" name="ncName" value="#{ncName}" type="text" class="input"/>'
	+'<b> *必填</b></dd><dd>昵　　称：'
	+'<input id="ncNick" name="ncNick" value="#{ncNick}" type="text" class="input"/><b> *必填</b></dd>'
	+'<dd>常用邮箱：'
	+'<input id="ncFmail" name="ncFmail" value="#{ncFmail}" type="text" class="input"/>'
	+'<b> *必填</b></dd><dd>备用邮箱：'
	+'<input id="ncBmail" name="ncBmail" value="#{ncBmail}" type="text" class="input"/></dd>'
	+'<dd>所 属 组：  #{groupBox}'
	+'</dd>'
	+'</ul>'
	// '<!-- 基本信息结束-->'
	+'<ol style="width:96%;"><dt><span><img src="'
	+MailConst.ALL
	+'/icon_arrow_top.gif" class="s_addr_show_dinfo" /></span>详细信息</dt>'
	+'<div id="detailInfoDiv"><dd>手　　机：'
	+'<input id="ncMobile" name="ncMobile" value="#{ncMobile}" type="text" class="input"/>'
	+'<span>住宅电话：'
	+'<input id="ncHP" name="ncHP" value="#{ncHP}" type="text" class="input"/></span></dd>'
	+'<dd>办公电话：'
	+'<input id="ncOP" name="ncOP" value="#{ncOP}" type="text" class="input"/>'
	+'<span>传　　真：'
	+'<input id="ncF" name="ncF" value="#{ncF}" type="text" class="input"/></span></dd>'
	+'<dd style="display:none;">传　　呼：'
	+'<input id="ncPager" name="ncPager" value="#{ncPager}" type="text" class="input"/>'
	+'</dd>'
	+'<dd>'
	+'住宅地址：'
	+'<input id="ncH" name="ncH" value="#{ncH}" type="text" class="input long"/>'
	+'</dd>'
	+'<dd>'
	+'邮政编码：'
	+'<input id="ncHPost" name="ncHPost" value="#{ncHPost}" type="text" class="input"/>'
	+'</dd>'
	+'<dd>'
	+'办公地址：'
	+'<input id="ncO" name="ncO" value="#{ncO}" type="text" class="input long"/>'
	+'</dd>'
	+'<dd>邮政编码：'
	+'<input id="ncOPost" name="ncOPost" value="#{ncOPost}" type="text" class="input"/>'
	+'</dd></div>'
	+'</ol>'
	// '<!-- 其他信息开始-->'
	+'<ol style="width:96%;"><dt><span><img src="'
	+MailConst.ALL
	+'/icon_arrow_bottom.gif" class="s_addr_show_info" /></span>其他信息</dt>'
	+'<div id="otherInfoDiv" style="display:none"><dd>生　　日：'
	+'<input id="ncYear" name="ncYear" value="#{ncYear}" type="text" class="short"/>'
	+'年'
	+'<input id="ncMonth" name="ncMonth" value="#{ncMonth}" type="text" class="short"/>'
	+'月'
	+'<input id="ncDay" name="ncDay" value="#{ncDay}" type="text" class="short"/>'
	+'日  &nbsp;&nbsp;  (格式如: 1980 年 01 月 01 日)<span style="color:red;display:none;"> 您的好友年龄太小了，劝他在家好好写作业吧~~ </span></dd>'
	+'<dd>备　　注：'
	+'<textarea id="ncNote" name="ncNote" rows="3">#{ncNote}</textarea>'
	+'</dd>'
	+'<dd>个人主页：'
	+'<input id="ncPage" name="ncPage" value="#{ncPage}" type="text" class="input long"/>'
	+'</dd></div> <div>  <dd><span><input value="确　定" type="button" class="yes s_addr_create_c" />　'
	+'<input value="取　消" type="button" class="yes s_addr_main_page" /></span></dd>'
	+'</div>'
	+'</ol>'
	// '<!-- 其他信息结束-->'
	+'</div>';

var mailAddrCreateGroupTemplate = '<div style="padding:8px 0px 0px 20px;"><b>新建联系组</b>　[ <a hidefocus="true" href="javascript:;" class="black" onclick="mailAddressClass.init();">返回</a> ]</div>'
	+'<div class="creategroup">联系组名称：<input id="newGroupName" type="text" class="input" value="#{groupname}"/>'
	+'<span>*必填</span></div>'
	+'<div style="width: 580px;height:480px;" class="group">'
	+'<div style="float: left;width: 200px;height: 440px;"><div>所有联系人</div>#{sitem}</div>'
	+'<div style="float: left;width: 80px;height: 440px;"><div style="margin: 160px auto;"> <div style="margin: 8px auto;"><input value="添加 >>" type="button"  class="yes s_addr_group_add" /></div><div style="margin: 4px auto;"><input value="<< 移除" type="button" class="yes s_addr_group_del" /></div> </div></div>'
	+'<div style="float: left;width: 200px;height: 440px;"><div>当前组成员</div>#{ditem}</div>'
	+'<div style="clear:both;width:460px;text-align:center;"><input style="margin: 8px;" value="确　定" type="button" class="yes s_addr_create_g" /><input style="margin: 8px;" value="取　消" type="button" class="yes s_addr_main_page" /></div>'
	+'<div style="height:25px;width:100%;"> &nbsp; </div>'
	+'</div>'
	+'</div>';

/*-------------------------------- 地址簿的新模板资源 ---------------------------------*/
// var addr_recent_item = '<div id="addr_list_#{id}" contact_id="#{id}" style="width:100%;height:30px;position:relative;clear:both;"><div class="contact_item"><div style="width:6%;float:left;clear:both;"><input hidefocus="true" type="checkbox" style="margin:8px 4px !important;margin:6px 4px;padding:0px;" value="" /></div><div style="width: 35%;float: left;"><div><span style="float:left;overflow:hidden;white-space:nowrap;" pinyin="#{pinyin}">#{nickname}</span><span style="float:left;margin: auto 6px;"><a hidefocus="true" style="visibility:hidden;" hidefocus="true" href="javascript:;" onclick="return false;"> [编 辑] </a></span></div><div style="display: none;position:relative;clear:both;height:30px;"><input type="text" value="#{nickname}" style="margin: 6px 0px !important;margin: 4px 0px;" /></div></div><div style="width: 15%;float: left;margin:0px;padding:0px;"> &nbsp; </div><div title="给联系人写信" style="cursor:pointer;width: 35%;float: left;" onclick="mailAddressClass.groupWriteMail(this.innerHTML);">#{email}</div></div></div>';

var addr_contact_item = '<div style="width:6%;float:left;clear:both;"><input hidefocus="true" type="checkbox" style="margin:8px 4px !important;margin:6px 4px;padding:0px;" value="" /></div><div style="width: 35%;float: left;"><div><span style="float:left;overflow:hidden;white-space:nowrap;" pinyin="#{pinyin}">#{nickname}</span><span style="float:left;margin: auto 6px;"><a hidefocus="true" style="visibility:hidden;" hidefocus="true" href="javascript:;" inContact="#{inContact}"> [编 辑] </a></span></div><div style="display: none;position:relative;clear:both;height:30px;"><input type="text" value="#{nickname}" style="margin: 6px 0px !important;margin: 4px 0px;" /></div></div><div style="width: 15%;float: left;margin:0px;padding:0px;"> &nbsp; </div><div title="给联系人写信" style="cursor:pointer;width: 35%;float: left;">#{email}</div>';

var addr_left_area = '<div id="mail_address_left" style="float:left;"><div class="mail_group">'
	+'<div class="title"><div style="margin: auto 10px; line-height: 30px;"> <span class="con">联系组</span> <span style="float: right;"> <a hidefocus="true" style="text-decoration:underline;" href="main" class="s_addr_create_group"> 新建组 </a></span> </div></div>'
	+'<ul style="width: 100%; height: 100%; margin: 0px; padding: 0px;">'
	+'#{list}'
	+'<div style="margin: 16px 8px;"><div><a hidefocus="true" style="text-decoration:underline;" href="main" class="s_addr_import"> 导入联系人 </a></div><div><a hidefocus="true" style="text-decoration:underline;" href="/address/export" target="_blank"> 导出 </a></div></div>'
	+'</ul><div style="height:25px;clear:both;"> &nbsp; </div></div></div>';
					   
var addr_group_item = '<li onmouseover="mailAddressClass.group_over(this);" onmouseout="mailAddressClass.group_out(this);" gid="#{id}" class="s_addr_group" id="addr_group_#{id}" style="white-space:nowrap; width: 100%;"><div style="margin: auto 10px; overflow: hidden; width: 160px; line-height: 24px; white-space: nowrap;"> #{name} <span> #{num} </span></div></li>';

var addr_right_area = '<div style="width:100%;"><div id="addr_opr_bar_1" class="operate"></div>'
	+'</div>'
	+'<div id="messageDiv" class="message" style="display:none;"><div class="inner"><img src="' + MailConst.ALL + '/icon_ok.gif" align="absmiddle" /> 操作成功！ </div></div>'
	+'<div id="searchInfo" class="message" style="display:none;"><div class="inner"> </div></div>'
	+'<div id="mail_contact_list" class="mail_contact" style="margin: 8px;">'
	+'<div id="" style="width: 100%;height:30px;position:relative;line-height:30px;clear:both;">'
	+'<div style="width:6%;float:left;clear:both;"><input hidefocus="true" type="checkbox" class="s_addr_setall" style="margin:8px 4px !important;margin:4px; padding: 0px; " value="" /></div>'
	+'<div style="width: 35%;float: left;font-weight:bold;"> 昵称 </div>'
	+'<div style="width: 15%;float: left;font-weight:bold;"> '+ ((USE_SYS.name == "sohu") ? "积分等级" : "&nbsp;") +' </div><div style="width: 35%;float: left;font-weight:bold;"> 邮件地址 </div>'
	+'</div>'
	+'<div id="mail_contact" style="width:100%;position:relative;clear:both;"></div>'
	+'</div>'
	+'<div style="width:100%;"><div id="addr_opr_bar_2" class="operate2"></div>'
	+'</div>'
	+'<div style="height:55px;clear:both;"> &nbsp; </div>';
					  
var addr_group_option = '#{name}  <span> <a hidefocus="true" class="brown s_addr_edit_group" gid="#{id}" href="main">编辑联系组</a> | <a hidefocus="true" class="brown s_addr_send_group" gname="#{name}" href="main">给组发信</a> | <a hidefocus="true" class="brown s_addr_del_group" gid="#{id}" href="main">删除联系组</a></span>';

var addr_group_option1 = '#{name}  <span> <a hidefocus="true" class="brown s_addr_send_group" gname="#{name}" href="main">给组发信</a> </span>';

var addr_group_add_item = '<div contact_id="#{id}" style="position:relative;height: 24px;width:100%;"><div onmousedown="mailAddressClass.listmousedown(this);" onmouseover="mailAddressClass.listover(this);" onmouseout="mailAddressClass.listout(this);" style="position:absolute;left:0px;top:0px;z-index:2;width: 180px; height: 24px;white-space:nowrap;clear:both;" title="#{email}"><div style="margin: 2px 4px;"> #{nickname} </div></div></div>';

var addr_import = '<div class="createcontact">'
	+'<div class="operate">'
	+'<div class="l-area title"><b>联系人</b>　<span class="bk cur-pt s_addr_main_page">[返回]</span></div>'
	+'</div>'
	+'<dl id="import_address_area"><dt style="margin:0;font-size:14px;">导入地址本文件</dt>'
	+'<dd><div style="margin: 8px 0px 20px 0px;">'
	+'<form action="/address/importCSV" method="post" target="file_upload_ifr" enctype="multipart/form-data">'
	+'<div id="address_upload" style="margin: 8px 0px;">'
	+'<input id="import_address" name="import_address" type="file" style="margin:0px 4px 0px 0px;height:22px;padding:0px;" />'
	+'</div>'
	+'<div id="address_upload_info" style="margin: 4px 10px 4px 0px;border:1px solid #EDEDED;background-color:#EFEFEF;height:22px;display:none;"><div style="float:left;margin-left:0px;"></div><div style="float:left;margin-left:0px;margin-right:40px;"><img style="margin:2px auto 2px 40px;" src="'+ MailConst.ALL +'/load_addr.gif" /></div><div style="float:left;cursor:pointer;" class="s_addr_cancel_import" onmouseover="this.style.textDecoration=\'underline\';" onmouseout="this.style.textDecoration=\'none\';"> [取 消] </div></div>'
	+'<div> 遇到相同的邮件地址：<input name="replace" type="radio" checked value="0" />跳过  <input name="replace" type="radio" value="1" />覆盖 </div>'
	+'</form>'
	+'<div> 注意：导入的文件必须是 " .csv " 格式 </div>'
	+'<p style="margin-left:54px;"><input type="button" value="确　定"  class="yes s_addr_import_addr" /></p>'
	+'</div></dd>'
	+'<dt style="margin:0;font-size:14px;">导入其他邮箱地址本</dt>'
	+'<dd id="address_import_succ" style="display:none;"><h5><img src="'+ MailConst.ALL +'/icon_ok.gif" align="absmiddle"/>地址本已导入成功!</h5></dd>'
	+'<dd style="margin-top:10px;">（请输入您要导入的邮箱地址和密码）</dd>'
	+'<dd>用户名：'
	+'<input name="import_other_email" id="import_other_email" type="text" class="input"/>'
	+'@ <select name="import_other_select" id="import_other_select">'
	+'<option>163.com</option>'
	// '<option>126.com</option>'
	+'<option>tom.com</option>'
	+'<option>sina.com</option>'
	+'<option>yahoo.com.cn</option>'
	+'</select>'
	+'</dd>'
	+'<dd>密　码：'
	+'<input name="import_other_pwd" id="import_other_pwd" type="password" class="input"/>'
	+'</dd>'
	+'<dd> 遇到相同的邮件地址：<input type="radio" id="import_other_rep1" checked name="other_replace" value="0" />跳过  <input type="radio" id="import_other_rep2" name="other_replace" value="1" />覆盖 </dd>'
	+'<p style="margin-left:54px;"><input type="button" value="确　定" class="yes s_addr_import_other" />　'
	+'<input type="button" value="取　消" class="yes s_addr_main_page" /></p>'
	+'</dl></div>';
			
			
var addr_import_succ = '<dd><h5><img src="'+ MailConst.ALL +'/icon_ok.gif" align="absmiddle"/>联系人导入成功！</h5></dd>'
	+'<dd>您已经将以下联系人成功导入'+ USE_SYS.title +'邮箱，现在告诉朋友们你的新邮箱地址吧!</dd>'
	+'<dd>'
	+'<table cellpadding="0" cellspacing="0" id="mailfolder" class="mail-folder" style="width:400px;margin:0">'
	+'<tbody>'
    +'<tr>'
    +'<th width="31%">昵称</th>'
    +'<th width="69%">邮箱</th>'
    +'</tr>'
	+'#{import_list}'
	+'</tbody>'
    +'</table>'
	+'</dd>'
	+'<dd id="import_succ_area">'
	+'<table width="479" border="0" cellspacing="0" cellpadding="5">'
    +'<tr>'
    +'<td width="36">主题：</td>'
    +'<td width="423"><input id="import_succ_send_subject" name="" type="text" value="我是#{current_name}，这是我现在的邮箱地址" size="60" /></td>'
    +'</tr>'
    +'<tr>'
    +'<td valign="top">正文：</td>'
    +'<td><textarea name="" id="import_succ_send_content" rows="4">你好，我是#{current_name}。我现在使用的邮箱是#{current_email},保存这个地址哦，以后常联系！</textarea></td>'
    +'</tr>'
    +'<tr>'
    +'<td>&nbsp;</td>'
    +'<td>'
    +'<input type="button" class="yes s_addr_send_mail" value="发送通知"/>　　'
    +'<input type="button" class="yes s_addr_main_page" value="以后再说" />'
    +'</td>'
    +'</tr>'
    +'</table>'
	+'</dd>'
	+'<dd id="send_succ_area" style="display:none;text-align: center;">'
	+'<h5><img src="'+ MailConst.ALL +'/icon_ok.gif" align="absmiddle"/>通知发送成功！</h5><br />'
	+'<input type="button" class="yes s_addr_main_page" value="返　回" />'
	+'</dd>'
	+'<dd>&nbsp;</dd>'
	+'<p style="margin-left:54px;"></p>';
/******************************************* 地址簿end ******************************************/

/******************************************* 用户配置信息 ******************************************/
var mailCfgTemplate_no_chinaren = USE_SYS.name == 'sohu' ? '<div class="c-block">'
	+'<b class="mh-corner-xtop"><b class="mh-corner-xb1"></b><b class="mh-corner-xb2"></b><b class="mh-corner-xb3"></b></b>'
	+'<div style="border-left:1px solid #FFF;border-right:1px solid #FFF;"><div class="mh-corner-xboxcontent">'
	+'<div style="height:120px;background-color:#fff;padding:6px 26px;">'
	+'<dt>手机邮件服务</dt>'
	+'<dl><dd><a hidefocus="true" href="main" class="s_cfg_service">开通服务</a></dd><dd><a hidefocus="true" href="main" class="s_cfg_setservice">服务设置</a></dd><dd><a hidefocus="true" href="main" class="s_cfg_setadvance">高级选项</a></dd></dl>'
	+'<ol><li>申请开通手机邮件服务</li><li>开通手机邮件后对服务进行设置</li><li>手机提醒时间和提醒限制</li></ol>'
	+'</div>'
	+'</div></div>'
	+'<b class="mh-corner-xbottom"><b class="mh-corner-xb3"></b><b class="mh-corner-xb2"></b><b class="mh-corner-xb1"></b></b>'
	+'</div>' : '';
	
// 更换皮肤的配置信息
var mailCfgChangeSkin = '<div class="cfgoption">'
	+'<h4>选项<b><a hidefocus="true" href="main" class="s_main_page">[返回]</a></b> <span>点击图片即可切换皮肤，并保存</span> </h4>'
	+'<div class="spt-line"></div>'
	+'<div>'
	+'<div class="s_skin_item f-lf skin-item #{focus_class_blue}" #{isfocus_blue} skin="blue"><div class="bg-1 inner cur-pt"></div><div class="txt">天空蓝</div></div>'
	+'<div class="s_skin_item f-lf skin-item #{focus_class_green}" #{isfocus_green} skin="green"><div class="bg-2 inner cur-pt"></div><div class="txt">藤蔓绿</div></div>'
	+'<div class="s_skin_item f-lf skin-item #{focus_class_default}" #{isfocus_default} skin="default"><div class="bg-3 inner cur-pt"></div><div class="txt">枫叶秋</div></div>'
	+'<div class="s_skin_item f-lf skin-item #{focus_class_grey}" #{isfocus_grey} skin="grey"><div class="bg-4 inner cur-pt"></div><div class="txt">水墨画</div></div>'
	+'<div class="s_skin_item f-lf skin-item #{focus_class_red}" #{isfocus_red} skin="red"><div class="bg-5 inner cur-pt"></div><div class="txt">卡通园</div></div>'
	+'<div class="s_skin_item f-lf skin-item #{focus_class_lowcarbon}" #{isfocus_lowcarbon} skin="lowcarbon"><div class="bg-6 inner cur-pt"></div><div class="txt">家园树</div></div>'
	+'</div>'
	+'</div>';

var mailCfgTemplate = '<div class="cfgoption">'
	+'<h4>选项<b><a hidefocus="true" href="main" class="s_main_page">[返回]</a></b></h4>'
	+'<div><h5 id="cfgSuccMsg" style="display:none;width:670px;"><img src="'
	+MailConst.ALL
	+'/icon_ok.gif" align="absmiddle" />配置选项修改成功!</h5></div>'
	+'<div><h5 id="signMsg" style="display:none;width:670px;"><img src="'
	+MailConst.ALL
	+'/icon_ok.gif" align="absmiddle" />个性头像修改成功！请至欢迎页查看。</h5></div>'
	
	+'<div class="c-block">'
	+'<b class="mh-corner-xtop"><b class="mh-corner-xb1"></b><b class="mh-corner-xb2"></b><b class="mh-corner-xb3"></b></b>'
	+'<div style="border-left:1px solid #FFF;border-right:1px solid #FFF;"><div class="mh-corner-xboxcontent">'
	
	+'<div style="height:120px;background-color:#fff;padding:6px 26px;">'
	+'<dt>个人信息</dt>'
	+'<dl><dd><a hidefocus="true" href="http://passport.sohu.com/web/editpwd" target="_blank">密码设置</a></dd><dd><a hidefocus="true" href="http://passport.sohu.com/web/editquestion" target="_blank">密码提示问题</a></dd><dd><a hidefocus="true" href="http://passport.sohu.com/web/editinfo" target="_blank">个人注册信息</a></dd></dl>'
	+'<ol><li>设置安全强度高、便于记忆的密码</li><li>设置密码提示问题和答案</li><li>修改个人注册信息，便于找回密码</li><li style="display:none">设置个人头像，显示在邮箱欢迎页</li></ol>'
	+'</div>'
	
	+'</div></div>'
	+'<b class="mh-corner-xbottom"><b class="mh-corner-xb3"></b><b class="mh-corner-xb2"></b><b class="mh-corner-xb1"></b></b>'
	+'</div>'
	
	+'<div class="c-block">'
	+'<b class="mh-corner-xtop"><b class="mh-corner-xb1"></b><b class="mh-corner-xb2"></b><b class="mh-corner-xb3"></b></b>'
	+'<div style="border-left:1px solid #FFF;border-right:1px solid #FFF;"><div class="mh-corner-xboxcontent">'
	
	+'<div style="height:120px;background-color:#fff;padding:6px 26px;">'
	+'<dt>基本参数</dt>'
	+'<dl><dd><a hidefocus="true" href="main#mailCfgParameter" class="s_cfg_set">基本设置</a></dd><dd><a hidefocus="true" href="main#mailCfgSign" class="s_cfg_sign">签名</a></dd><dd><a hidefocus="true" href="main#mailCfgAddresser" class="s_cfg_sender">发件人信息</a></dd><dd><a hidefocus="true" href="main#mailCfgRevert" class="s_cfg_reply">自动回复和转发</a></dd></dl>'
	+'<ol><li>设置阅读、发送习惯选项</li><li>设置发邮件信尾签名样式</li><li>设置邮件发出后的显示信息</li><li>设置邮箱的自动回复和转发功能</li></ol>'
	+'</div>'
	
	+'</div></div>'
	+'<b class="mh-corner-xbottom"><b class="mh-corner-xb3"></b><b class="mh-corner-xb2"></b><b class="mh-corner-xb1"></b></b>'
	+'</div>'
	
	+'<div class="c-block">'
	+'<b class="mh-corner-xtop"><b class="mh-corner-xb1"></b><b class="mh-corner-xb2"></b><b class="mh-corner-xb3"></b></b>'
	+'<div style="border-left:1px solid #FFF;border-right:1px solid #FFF;"><div class="mh-corner-xboxcontent">'
	
	+'<div style="height:120px;background-color:#fff;padding:6px 26px;">'
	+'<dt>反垃圾过滤功能</dt>'
	+'<dl><dd><a hidefocus="true" href="main#mailCfgRefuse" class="s_cfg_refuse">黑名单</a></dd><dd><a hidefocus="true" href="main#mailCfgFilter" class="s_cfg_filter">过滤器</a></dd><dd><a hidefocus="true" href="main#mailWhiteList" class="s_cfg_white">白名单</a></dd></dl>'
	+'<ol><li>将某个发件地址拒收</li><li>将邮件自动分类，设置拒收等</li><li>设置个人白名单有效防止误判</li></ol>'
	+'</div>'
	
	+'</div></div>'
	+'<b class="mh-corner-xbottom"><b class="mh-corner-xb3"></b><b class="mh-corner-xb2"></b><b class="mh-corner-xb1"></b></b>'
	+'</div>'
	
	+mailCfgTemplate_no_chinaren
	
	//Add By Alva.Yang  Advansed Feature
	+'<div class="c-block">'
	+'<b class="mh-corner-xtop"><b class="mh-corner-xb1"></b><b class="mh-corner-xb2"></b><b class="mh-corner-xb3"></b></b>'
	+'<div style="border-left:1px solid #FFF;border-right:1px solid #FFF;"><div class="mh-corner-xboxcontent">'
	
	+'<div style="height:120px;background-color:#fff;padding:6px 26px;">'
	+'<dt>高级功能</dt><dl>'
	+ (USE_SYS.name == 'sohu' ? '<dd><a hidefocus="true" href="main" class="s_cfg_setlogin">登录设置</a></dd>' : '')
	+'<dd><a hidefocus="true" href="main" class="s_cfg_setsend">定时发信</a></dd>'
    +'<dd><a hidefocus="true" href="main" class="s_cfg_setconvey">魔法情书</a></dd>'
	+'</dl>'
	+'<ol>'
	+(USE_SYS.name == 'sohu' ? '<li>设置'+ USE_SYS.title +'首页登录习惯</li>' : '')
	+'<li>在一个特殊的时间给朋友发信</li>'
    +'<li>传递情感，问候不间断。</li>'
	+'</ol>'
	+'</div>'
	
	+'</div></div>'
	+'<b class="mh-corner-xbottom"><b class="mh-corner-xb3"></b><b class="mh-corner-xb2"></b><b class="mh-corner-xb1"></b></b>'
	+'</div>'
	
	//Add By Alva.Yang  Advansed Feature End
	+'</div>';

// 基本设置
var mailCfgParameterTemplate = '<div class="cfgtemplate">'
	+'<div class="corner"><h4>基本设置<b>[<a hidefocus="true" href="main#initMailCfg" class="grey s_cfg_main">返回选项首页</a>]</b></h4></div>'
	+'<form name="cfg_parameter" id="cfg_parameter">'
	// +'<dl><dd><span>保存发出邮件：</span>#{autosave}</dd><dd>（为了保存您完整的通信记录，此选项默认打开）</dd></dl>'
	+'<dl><dd><span>自动保存收件人：</span>#{autosavesendmail}</dd><dd>（发送成功，自动将未添加的联系人添加到地址簿<span id="addr_limit_info" style="color:red;display:none;">　联系人已达到保存上限500条，此选项暂不生效</span>）</dd></dl>'
	+'<dl><dd><span>自动保存邮件时间间隔：</span>#{autosavewritemail}</dd></dl>'
	+'<dl><dd><span>是否打开会话模式：</span>#{isconference}</dd></dl>'
	+'<dl><dd><span>发件人显示：</span>#{showsenderaddr}</dd></dl>'
	+'<dl><dd><span>回复时标题前加入：</span>#{replytoken}</dd></dl>'
	+'<dl><dd><span>回复时包含原文：</span>#{includeoriginal}</dd></dl>'
	+'<dl><dd><span>默认的邮件编辑器：</span>#{defaulteditor}</dd></dl>'
	+'<dl><dd><span>每页显示邮件数：</span>#{pagecount}</dd></dl>'
	// +'<dl><dd><span>设置信头显示的详略程度：</span>#{viewheader}</dd><dd>（“简略”将显示标题，来信人，收信时间；“完全”将显示以上信息以及mime编码等全部信息）</dd></dl>'
	+'<dl><dd><span>在不同客户端收取邮件时，同一封信只收一次：</span>#{record_retr}</dd></dl>'
	+'<dl><p><input name="确定" value="确　定" type="button" class="yes s_cfg_parameter" />　<input name="取消" value="取　消" type="button" class="yes s_cfg_main" /></dd></p></dl>'
	+'</form>'
	+'</div>';

// 设置签名
var mailCfgSignTemplate = '<div class="cfgtemplate">'
	+'<div class="corner"><h4>设置签名<b>[<a hidefocus="true" href="main#initMailCfg" class="grey s_cfg_main">返回选项首页</a>]</b></h4></div>'
	+'<dl><dt style="margin-top:-22px">图片签名</dt><dd id="image_address">#{image_signature}启用&nbsp;&nbsp;&nbsp;&nbsp;<a hidefocus="true" title="请点击上传按钮设计您的图片签名!"><img src="#{image_path}" align="absbottom" id="demoimg" style="width:148px;height:106px;cursor: pointer;"/></a></dd>'
	+'<dd style="margin-top:15px;">上传图片：'
	+'<form id="file_upload_img" enctype="multipart/form-data" target="file_upload_image" method="post" action="/sign/act/UploadPicture?flag=0&domain=0&email='+UserSohuID+'" name="file_upload_img" >'
    +'<input type="file" name="upload_image" id="upload_image" />&nbsp;&nbsp;'
    +'<input name="上传" type="button"  class="yes s_cfg_upload" value="上 传" id="uploadImage"/>'
   	+'</form>'
  	+'</dd>'
    +'<dd>( 图片建议：2M以内的JPG或GIF图片文件 )</dd>'
    +'</dl>'
	+'<dl id="imgDiv" style="display:none;"><dd >'
	+'<div>'
	+'<div style="height:300px;width:370px;border:1px solid #C0D8DA;float:left;padding:2px;margin-bottom: 10px;">'
	+'<div  style="position: relative;padding-top:5px;text-align:center;width:230px;">'
	+'<div id="bgDiv" style="border:1px solid;left:3px;position:absolute;text-align:center;top:3px;z-index:5;">'
	+'<img style="z-index: 1; border:1px  #CCCCCC;display:block;" id="signImage"/>'
	+'</div>'
	+'</div>'
	+'</div>'
    +'<img style="float:left;margin:55px 15px 0;" alt="" src="'+MailConst.ALL+'/setting_arrow.png"/>'
    +'<div style="float:left;line-height:25px;margin-top:10px;padding:2px;width:104px;">'
	+'<span>图片签名预览</span>'
	+'<div style="border:2px solid #999999;margin:0 0 5px;padding:2px;text-align:center;width:148px;">'
	+'<div id="previewArea" style="height:80px;margin:0;overflow:hidden;width:60px;">'
	+'</div></div></div>'
	+'<div style="clear:both;display:block;">'
	+'<input type="button" class="yes s_cfg_save_sign" value="保存" name="submit" />&nbsp;&nbsp;&nbsp;'
	+'<input type="button" class="yes s_cfg_cancel_sign" value="取消" name="Cancel" />'
	+'</div></div>'
	+'</dd></dl>'
	+'<dl><dt >文字签名</dt><dd style="padding-top:2px;width:401px;" ><div id="ineditorimage" style="height:200px;border:1px solid #E1E1E1;"></div></dd><p><input name="确定" value="确　定" type="button" class="yes s_cfg_set_sign"/>　<input name="取消" value="取　消" type="button" class="yes s_cfg_main" />&nbsp;&nbsp;&nbsp;<input name="预览" type="button"  class="yes s_cfg_sign_preview" value="预 览" /></dd></p></dl>'
	+'</div>';

// 发件人信息
var mailCfgAddresserTemplate = '<div class="cfgtemplate">'
	+'<div class="corner"><h4>发件人信息<b>[<a hidefocus="true" href="main#initMailCfg" class="grey s_cfg_main">返回选项首页</a>]</b></h4></div>'
	+'<form name="cfg_addresser" id="cfg_addresser">'
	+'<dl><dt>发件人姓名：</dt><dd>设置发送邮件时对方看到的您的名字。默认显示为您的邮箱帐号：</dd><dd><input name="cfg_fullname" id="cfg_fullname" type="text" class="input" value="#{fullname}" onfocus="this.className=\'focus\'" onblur="this.className=\'input\'" /></dd></dl>'
	+'<dl><dt>回复地址：</dt><dd>设置回复邮件的地址。默认显示为您的邮箱帐号：</dd><dd><input name="cfg_replyto" id="cfg_replyto" type="text" class="input" value="#{replyto}" onfocus="this.className=\'focus\'" onblur="this.className=\'input\'" /></dd><p><input name="确定" value="确　定" type="button" class="yes s_cfg_set_sender"/>　<input name="取消" value="取　消" type="button" class="yes s_cfg_main" /></dd></p></dl>'
	+'</form>'
	+'</div>';

var mailCfgRevertTemplate = '<div class="cfgtemplate">'
	+'<div class="corner"><h4>自动回复和转发设置<b>[<a hidefocus="true" href="main#initMailCfg" class="grey s_cfg_main">返回选项首页</a>]</b></h4></div>'
	+'<form name="cfg_revert" id="cfg_revert">'
	+'<dl><dt>自动回复：#{autoreplyenable}</dt><dd>（打开本功能，当邮件到达时，系统将自动回复以下内容给发件人）</dd><dd>期限：开始日期 #{startyear}年 #{startmonth}月 #{startdate}日　结束日期 #{endyear}年 #{endmonth}月 #{enddate}日 <font color=red id="cfg_time_period" style="display:none;"> 　（时间范围超出了限制，系统默认为您设置成了90天） </font></dd><dd>（自动回复的时间范围不能超过90天）</dd><dd>自动回复内容：<textarea name="cfg_AutoReply" id="cfg_AutoReply" cols="45" rows="4">#{AutoReply}</textarea></dd></dl>'
	+'<dl><dt>自动转发：#{forwardenable} </dt><dd>（打开本功能，到达本邮箱的所有邮件，将自动转发到以下地址）</dd><dd>自动转发地址：<input name="cfg_forward" id="cfg_forward" type="text" class="input" value="#{forward}"/></dd><dd style="margin-top:5px;">是否需要在服务器上保留已转发的邮件：#{reserveforward}</dd><p style="margin-top:30px"><input name="确定" value="确　定" type="button" class="yes s_cfg_set_reply"/>　<input name="取消" value="取　消" type="button" class="yes s_cfg_main" /></dd></p></dl>'
	+'</form></div>';

var mailCfgFilterTemplate = '<div class="cfgtemplate">'
	+'<form name="cfg_filter" id="cfg_filter">'
	+'<div class="corner"><h4>过滤器<b>[<a hidefocus="true" href="main#initMailCfg" class="grey s_cfg_main">返回选项首页</a>]</b></h4></div>'
	+'<h5 id="prompt_info" style="width:65%;display:none;"><img src="'
	+MailConst.ALL
	+'/icon_ok.gif" align="absmiddle"/>规则添加/修改成功！</h5>'
	+'<table cellpadding="0" cellspacing="0" id="mailfolder" class="mail-folder">'
	+'<tr><th width="7%" >启用</th><th width="55%">规则</th><th width="22%">执行</th><th width="16%">操作</th></tr>'
	+'#{filter0}#{filter1}#{filter2}#{filter3}#{filter4}#{filter5}#{filter6}#{filter7}#{filter8}#{filter9}'
	+'</table>'
	+'<dl><p><input name="确定2" value="确　定" type="button" class="yes s_cfg_set_filter"/>　<input name="取消" value="取　消" type="button" class="yes s_cfg_main" /></p></dl>'
	+'<dl><dt>新规则</dt><dd>'
	+'<table width="490" border="0" cellspacing="0" cellpadding="0">'
	+'<tr><td width="37">条件：</td><td width="46"><select name="cfg_filter_par2"><option selected="selected" value=0>标题</option><option value=1>发件人</option><option value=2>正文</option></select></td><td width="71"><select name="cfg_filter_par4"><option selected="selected" value=0>包含</option><option value=1>不包含</option><option value=2>等于</option><option value=4>不等于</option></select></td><td width="165"><input name="cfg_filter_par3" type="text" class="input" value=""/></td><td width="171">&nbsp;</td></tr>'
	+'<tr><td>执行：</td><td style="display:none;" colspan="4"><input type="radio" name="radiobutton" value="radiobutton" />拒收</td><td colspan="4"><input style="display:none;" type="radio" name="radiobutton" value="radiobutton" />移到 <select name="cfg_filter_par5" id="cfg_filter_par5"> #{folderlist} </select></td></tr>'
	+'</table>'
	+'</dd>'
	+'<p><input name="确定" value="确　定" type="button" class="yes s_cfg_set_addfilter"/>　<input name="取消" value="取　消" type="button" class="yes s_cfg_main" />　<a hidefocus="true" href="main#mailCfgFilter2" class="s_cfg_set_filter2">高级过滤</a></p>'
	+'</dl></form></div>';

var mailCfgFilter2Template = '<div class="cfgtemplate">'
	+'<form name="cfg_filter" id="cfg_filter">'
	+'<div class="corner"><h4>高级过滤器<b>[<a hidefocus="true" href="main#initMailCfg" class="grey s_cfg_main">返回过滤器</a>]</b></h4></div>'
	+'<table cellpadding="0" cellspacing="0" id="mailfolder" class="mail-folder">'
	+'<tr><th width="7%" >启用</th><th width="55%">规则</th><th width="22%">执行</th><th width="16%">优先级</th></tr>'
	+'#{filter0}#{filter1}#{filter2}#{filter3}#{filter4}#{filter5}#{filter6}#{filter7}#{filter8}#{filter9}'
	+'</table>'
	+'<dl><p><input name="确定2" value="确　定" type="button" class="yes s_cfg_set_filter"/>　<input name="取消" value="取　消" type="button" class="yes s_cfg_set_filter1" /></p></dl>'
	+'<dl>'
	+'<dt>新规则</dt>'
	+'<dd>'
	+'<table width="490" border="0" cellspacing="0" cellpadding="0">'
	+'<tr><td width="37">条件：</td><td width="46"><select name="cfg_filter_par2"><option selected="selected" value=0>标题</option><option value=1>发件人</option><option value=2>正文</option></select></td><td width="71"><select name="cfg_filter_par4"><option selected="selected" value=0>包含</option><option value=1>不包含</option><option value=2>等于</option><option value=4>不等于</option></select></td><td width="165"><input name="cfg_filter_par3" type="text" class="input" value=""/></td><td width="171">&nbsp;</td></tr>'
	+'<tr><td>执行：</td><td style="display:none;" colspan="4"><input type="radio" name="radiobutton" value="radiobutton" />拒收</td><td colspan="4"><input style="display:none;" type="radio" name="radiobutton" value="radiobutton" />移到 <select name="cfg_filter_par5" id="cfg_filter_par5"> #{folderlist} </select></td></tr>'
	+'</table>'
	+'</dd>'
	+'<p><input name="确定" value="确　定" type="button" class="yes s_cfg_set_addfilter"/>　<input name="取消" value="取　消" type="button" class="yes s_cfg_main" /></p>'
	+'</dl></form></div>';
	//白名单（quzhi）
	
var mailWhiteListTemplate = '<div class="cfgtemplate"><div class="corner"><h4>白名单 <b>[<a hidefocus="true" href="main#initMailCfg" class="grey s_cfg_main">返回选项首页</a>]</b></h4></div>'
	+'<dl>'
	+'<div id="whileMessage">'
	+'<h5 id="whileerror_info" style="width:65%;display:none;" algin="left"><img src="'
	+MailConst.ALL
	+'/icon_ok.gif" align="absmiddle"/>白名单设置成功</h5>'
	+'</div>'
	+'<dd>白名单可以是一个邮箱地址或者是一个域，例如：abc@abc.com 或 @abc.com</dd>'
	+'<dd>加入“白名单”中的地址或域的邮件，将不会被当作垃圾邮件过滤。</dd>'
	+'<dd>提示：您的地址簿中的所有联系人，已默认加入白名单中。</dd>'
	+'<br/>'
	+'<dd>如果你想严格阻止陌生地址给您发送邮件，可以勾选此项：</dd>'
	+'<dd><span><input type="checkbox" name="checkbox" id="checkbox" value="#{flag}" #{check} class="s_cfg_set_white" />只收白名单中邮件</span><span id="set_only_white" style="margin-left:20px;color:red;visibility:hidden;"> </span></dd>'
	// '<dd style="margin-top:5px;"><input name="确定" type="button"  class="yes" value="确 定" onclick="mailCfgClass.setMailCfgAddWhite();" /><input name="确定" type="button"  class="yes" value="测 试" onclick="changeSign();" style="display:none" /></dd>'
	+'<br/>'
	+'<br/>'
    +'</dl>'
	+'<br/>'
	+'<dd style="margin-left:40px">添加邮件地址或域：<input type="text" name="white_textarea" id="white_textarea" cols="45" rows="5" style="width:240px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="确定" type="button"  class="yes s_cfg_set_addwhite" value="确 定" />'
	+'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="重置" type="button"  class="yes s_cfg_reset_white" value="重 置" /></dd>'
    +'<br/>'
	+'<table cellpadding="0" cellspacing="0" id="mailfolder" class="mail-folder">'
    +'<tr>'
    +'<th width="55%">白名单列表</th>'
    +'<th width="16%">操作</th>'
    +'</tr>';
	   
var mailWhiteListTemplate2 = '<tr id="tr_#{id}"><td >#{name}</td><td>#{operations}</td></tr>'
    +'<tr id="th_#{id}" style="display:none"><td><input id="upName_#{id}" type="text" value="#{name}" /></td><td>#{operations2}</td></tr>';

var mailBlackListTemplate = '<div class="cfgtemplate"><div class="corner"><h4> 黑名单 <b>[<a hidefocus="true" href="main#initMailCfg" class="grey s_cfg_main">返回选项首页</a>]</b></h4></div>'
	+'<dl>'
	+'<div id="blackMessage">'
	+'<h5 id="blackerror_info" style="width:65%;display:none;" algin="left"><img src="'
	+MailConst.ALL
	+'/icon_ok.gif" align="absmiddle"/>黑名单设置成功</h5>'
	+'</div>'
	+'<dd>黑名单可以是一个邮箱地址，例如：abc@abc.com</dd>'
	+'<dd>加入“黑名单”中的地址，发送的邮件将不会被收到。</dd>'
	+'<br/>'
	+'<br/>'
    +'</dl>'
	+'<br/>'
	+'<dd style="margin-left:40px">添加邮件地址：<input type="text" name="black_textarea" id="black_textarea" cols="45" rows="5" style="width:240px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="确定" type="button"  class="yes s_cfg_set_refuse" value="确 定" />'
	+'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="重置" type="button"  class="yes s_cfg_reset_black" value="重 置" /></dd>'
    +'<br/>'
	+'<table cellpadding="0" cellspacing="0" id="mailfolder" class="mail-folder">'
    +'<tr>'
    +'<th width="55%">黑名单列表</th>'
    +'<th width="16%">操作</th>'
    +'</tr>';

var mailBlackListTemplate2 = '<tr id="tr_#{id}"><td >#{name}</td><td>#{operations}</td></tr>';

var advancedFeatureTemplate = '<div class="cfgtemplate">'
	+'<div class="corner"><h4>登录设置<b>[<a hidefocus="true" href="main#initMailCfg" class="grey s_cfg_main">返回选项首页</a>]</b></h4></div>'
	+'<dl><dd>从狐首登录时：</dd></dl>'
	+'<dl><dd>#{adf}</dd></dl>'
	+'<dl><dd><input name="确定2" type="button" class="big_banner s_cfg_set_login" value="确定"/><input name="确定2" type="button" class="big_banner s_cfg_main" value="取消" /><dd></dl>';
/******************************************* 用户配置信息end ******************************************/


/******************************************* 手机邮件配置信息 ******************************************/

var mobileMailCfgTemplate = '<div class="cfgtemplate">'
	+'<div class="corner">'
	+'<h3><img src="'+MailConst.ALL+'/mobile2.gif"/></h3>'
	+'<h4>手机邮件<b>[<a hidefocus="true" href="main#mailList_1" class="grey s_mb_inbox">返回收件箱</a>]</b></h4>'
	+'</div>'
	+'<dl>'
	+'<dd>·<strong class="brown"> [<a hidefocus="true" href="main" class="brown s_mb_query">查询状态</a>]</strong> 查看与邮箱绑定的手机号码</dd>'
    +'<dd>·<strong class="brown"> [<a hidefocus="true" href="main" class="brown s_mb_cancel">取消服务</a>]</strong> 取消手机邮件服务</dd>'
    +'<dd>·<strong class="brown"> [<a hidefocus="true" href="return false;" class="brown s_mb_set">服务设置</a>]</strong> 开通手机邮件后对服务进行设置</dd>'
    +'<dd>·<strong class="brown"> [<a hidefocus="true" href="return false;" class="brown s_mb_advance">高级选项</a>] </strong>手机提醒时间和提醒限制</dd>'
    +'</dl>'
    +'<dl>'
    +'<dt>手机邮件优点多多：</dt>'
	+'<dd>1）随时收到新邮件</dd>'
	+'<dd> 2）方便自如地用手机收、发邮件</dd>'
	+'<dd> 3）查询新邮件和阅读、回复新邮件 </dd>'
    +'<dd> 4）免费邮箱空间立即升级为<font color="red">无限容量</font> </dd>'
    +'<dd> 5）获赠<font color="red">300M网盘永久存储区</font>+<font color="red">1G网盘临时存储区</font></dd>'
	+'</dl>'
	+'<dl>'
    +'#{mobile_info}'
	+'</dl>'
	+'<dl>'
	+'<dd>为了不影响您的正常生活，手机邮件做以下限制：</dd>'
	+'<dd>1、每天最多发送50条短信提醒，每月上限500条。</dd>'     
	+'<dd>2、手机闪电邮件提醒每天的发送时间为6点到23点之间</dd>'
	+'</dl>'
	+'</div>';
		
var mobileSmsTemplate = '<div class="cfgtemplate">'
	+'<div class="corner">'
	+'<h4>手机邮件<b>[<a hidefocus="true" href="main#mobileConfig" class="grey s_mb_main">返回</a>]</b></h4>'
	+'</div>'
	+'<dl>'
	+'<dt><strong>邮件提醒状态：</strong><dt>'
	+'<dd>'
	+'#{mobile_remind}'
	+'</dd>'
	+'</dl>'
	+'<dl>'
	+'<dt>设置提醒条件：</dt>'
	+'<dd>只接收一下来自以下地址的邮件到达提醒（多个地址以 , 或 ; 分隔）：</dd>'
	+'<dd> <textarea name="textarea" id="mobile_filter" style="width:320px;height:70px;overflow-y:auto;" cols="60" rows="5">#{mobile_filter}</textarea></dd>'
	+'<dd style="margin-top:10px;">只接收主题包含以下文字的邮件到达提醒（多组文字以 , 或 ; 分隔）：</dd>'
	+'<dd><textarea name="textarea2" id="mobile_subject" style="width:320px;height:70px;overflow-y:auto;" cols="60" rows="5">#{mobile_subject}</textarea></dd>'
	+'<dd style="margin-top:20px;margin-left:90px;">'
	+'<input name="确定" type="button" class="yes s_mb_setsms" value="确　定" />'
	+'&nbsp;&nbsp;&nbsp;&nbsp;<input name="取消" type="button" class="yes s_mb_main" value="取　消" />'
	+'</dd>'
	+'</dl>'
	+'</div>';
  		
var mobileSmsOptionTemplate = '<div class="cfgtemplate">'
	+'<div class="corner">'
	+'<h4>手机邮件<b>[<a hidefocus="true" href="main#mobileConfig" class="grey s_mb_main">返回</a>]</b></h4>'
	+'</div>'
	+'<dl>'
	+'<dt>超过限制条数（每天最多发送50条短信提醒，每月上限500条）的邮件：</dt>'
	+'#{mobile_limit}'
	+'</dl>'
	+'<dl>'
	+'<dt>邮件提醒的时间范围：</dt>'
	+'#{mobile_range}'
	+'<dd style="margin-top:20px;">'
	+'<input name="确定" type="button" class="yes s_mb_setoption" value="确　定" />'
	+'&nbsp;&nbsp;&nbsp;&nbsp;<input name="取消" type="button" class="yes s_mb_main" value="取　消" />'
	+'</dd>'
	+'</dl>'
	+'</div>';
/******************************************* 手机邮件配置信息end ******************************************/


/******************************************* WAP邮箱 ****************************************************/
var wapTemplate = '<div class="cfgtemplate"><div class="corner">'
	+'<h3><img src="' + MailConst.ALL + '/pic_wap.gif" /></h3>'
	+'<h4>wap邮箱'
	+'<b>[<a href="main#wapConfig" class="grey s_mb_inbox">返回收件箱</a>]</b></h4></div>'
	+'<dl style="border:0">'
	+'<dt>手机登录wap邮箱方式：</dt>'
	+'<dd>方式一：手机浏览器中输入<span class="red bold">m.mail.sohu.com</span>登陆免费邮箱</dd>'
	+'<dd>方式二：发短信<span class="red bold">me</span>，移动用户发送到<span class="red bold">1065750001250405</span><br />(联通用户发送到<span class="red bold">1066666606</span>)，点击收到的信息，直接访问wap邮箱首页</dd>'
	+'</dl>'
	+'<dl style="border:0">'
	+'<dt>Wap手机邮箱特点：</dt>'
	+'<dd><strong>全新彩版界面：</strong></dd>'
	+'<dd>更接近于互联网浏览界面，页面容量大资讯更丰富</dd>'
	+'<dd><strong>采用wap2.0协议：</strong></dd>'
	+'<dd>传输速率和页面解析速度更快</dd>'
	+'<dd><strong>数据同步：</strong></dd>'
	+'<dd>手机收发邮件与网络数据实时同步（邮件附件可下载到手机存储/预览）</dd>'
	+'<dd><strong>随时收发邮件：</strong></dd>'
	+'<dd>上班途中，出差在外随时能通过手机接收、发送、转发邮件</dd>'
	+'<dd><strong>完全免费：</strong></dd>'
	+'<dd>除您需要向移动运营商支付GPRS网络流量费用外，'+ USE_SYS.title +'不收取任何费用</dd><br />'
	+'<dd><a href="http://mail.sohu.com/mapp/help/wap/mail/wap_help.jsp" target="_blank" hidefocus="true">详情请见&gt;&gt; 帮助</a></dd>'
	+'</dl></div>';
/******************************************* WAP邮箱end ****************************************************/


/********************************************* 如果是新手激励，将会在首页显示明信片功能（以下为明信片功能的模板） ************************************************/
var mainPostcardTemplate = '<div class="service clear"><div class="amv weltitle"><span style="width: 220px;">。给好友发点好玩的吧：</span></div>'
	+'<div class="write" style="height:auto;margin:4px 24px;">#{postcard_image}</div>'
	+'</div>';
//网络优盘
var udiskTemplate = '<div class="cfgtemplate">'
                    +'<div class="corner">'
                    +'<h4>网络U盘<b>[<a class="grey s_mb_inbox" href="main#mailList_1" hidefocus="true" onclick="changePanel(\'mailList\', 1);">返回收件箱</a>]</b></h4>'
                    +'</div>'
                    +'<dl style="border:0"><dd>'+ USE_SYS.title +'邮箱为全体用户推出集存储、共享为一体的在线存储空间。不用花钱，完完全全免费服务。</dd></dl>'
                    +'<p style="margin:0 35px"><a href="http://u.sohu.com" target="_blank"><img src="'+MailConst.ALL+'/kaitong.gif" /></a></p>'                    
                    +'<dl>'
                    +'<dt>特点：</dt>'
                    +'<dd>1）1G存储空间——15天超长存储时间，可随时续期</dd>'
                    +'<dd>2）文件批量上传、下载——支持断线续传</dd>'
                    +'<dd>3）共享文件——把文件共享给多个好友</dd>'
                    +'<dd>4）文件在线预览——支持.jpg .doc .xls .pdf等文件在线查看</dd>'
                    +'<dd><a href="http://goto.mail.sohu.com/goto.php?code=upanmidpage" target="_blank" class="brown">更多帮助>></a></dd><br/>'
                    +'</dl>'
					+'<dl><dt>U盘使用方法：</dt>'
					+'<dd> 1）登录免费邮箱->左侧工具栏 [ 网络U盘 ] </dd>'
                    +'<dd> 2）直接访问 http://u.sohu.com 输入免费邮箱用户名及密码</dd>'
                    +'</dl>'
                    +'</div>';

//转存U盘时候的弹出层
var Save2UDiskListTemplate = '<div id="save2DiskSelector"  style="background:#fff;text-align:left;width: 600px;height: 350px;position: absolute;left: 0px;top: 0px;z-index: 9999;filter:Alpha(opacity=100);-moz-opacity:1.0;">'
                   + '<dl class="operate">'
                   + '<li style="width:0"><h1></h1></li>'
                   + '<li style="line-height:38px;text-indent:15px;width:320px"><b>请选择需要批量保存的附件：</b> </li></dl>'
                   + '<div style="height:250px;overflow:auto">'
                   + '<table cellpadding="0" cellspacing="0" id="mailfolder" class="mail-folder">'
                   + '<tr>'
                   + '<th width="7%" align="center"><input type="checkbox" name="checkbox2" value="checkbox" id="AllSelector"/></th>'
                   + '<th width="60%">名称</th>'
                   + '</tr>'
                   + '#{tr_inlines}'
                   + '</table>'
                   + '</div>'
                   + '<div style="display:none;" class="error" id="Save2UDiskPrompt">目标文件夹中已有同名的文件夹或文件存在！</div>'
                   + '<div id="mail_info" style="margin:10px 0 10px 220px"><input type="button" onclick="mailAttchement.saveAll2UDiskSubmit();return false;" value="确 认" class="yes"/>'
                   + '<input onclick="mailAttchement.cancelSaveAll();return false;" name="button" type="button" class="yes" value="取 消"/>'
                   + '</div>';


// U盘树的层
// position: absolute;left: 0px;top: 0px;z-index: 999999;filter:Alpha(opacity=100);-moz-opacity:1.0;
var UDiskTreeTemplate = '<div id="TreeRootDiv" style="background:#fff;text-align:left;width: 800px;height: 400px;border:2px solid #9e9e9e;">'
                  + '<div class="f-lf" style="height:400px;width:160px;"><div id="udisk_dir_tree" style="overflow:auto;padding:12px 4px 8px 4px;">'
                  + '#{treeINFO}'
                  + '</div></div>'
                  + '<div class="f-lf" style="width:640px;">'
                  + '<div id="drag_bar" class="operate" style="cursor:move;">'
                  + '<div style="line-height:30px;text-indent:15px;width:150px"><b>'+ USE_SYS.title +'网络U盘</b></div>'
                  + '</div>'
                  + '<div id="tablearea" style="overflow:auto;height:320px;">'
                  + '#{tabledata}'
                  + '</div>'
                  + '<div id="mail_info" style="margin-left:200px;height:50px;line-height:50px;"><input type="button" onclick="udisk.submitSelect();return false;" value="确 认" class="yes"/>　　'
                  + '<input name="button" type="button" onclick="udisk.removeMask();return false;" class="yes" value="取 消"/>'
                  + '</div>'
                  + '</div>'
                  + '</div>'
                  + '</div>';

var PromptTemplate ='<div id="prompt_panel" style="background:#fff;text-align:left;width: 600px;height: 180px;position: absolute;left: 0px;top: 0px;z-index: 9999;filter:Alpha(opacity=100);-moz-opacity:1.0;" ><div class="justfinder" id="addresser" style="height:50px;text-align:left;">'
                    +'<div id="del_group_prompt_move_btn" class="corner" style=""><h4>#{str_title}</h4></div>'
                    +'<div id="del_group_prompt_panel_one">'
                    +'<dl>'
                    +'#{str_prompt}'
                    +'</dl>'
                    +''
                    +'<p align="center"><b><a href="javascript:;" onclick="mailAttchement.cancelSaveAll();window.open( \'http://u.sohu.com/main.action?folderId=-3\' );return false;"  target="_blank" style="font-weight:bold;margin-top:20px;margin-right:20px;">【确定】</a><a href="javascript:;" onclick="mailAttchement.cancelSaveAll();return false;" style="margin-right:20px;font-weight:bold;">【取消】</a></b></p>'
                    +'</div>'
                    +'</div></div>';


/*
 *  文件夹锁的模板
 */ 
var FoloderLockerOptionTemplate = '<div class="cfgtemplate" style="min-height:500px">'
	+'<div class="corner">'
	+'<h4>设置密码锁<b>[<a hidefocus="true" href="main#mailMain" class="grey s_mb_main" hidefocus="true" onclick="changePanel(\'mainPage\');">返回邮箱首页</a>]</b></h4>'
	+'</div>'
	+'<dl>'
	+'<dt>设置一把密码锁，就可以给您的个人自建文件夹、代收文件夹上锁，邮件将更加安全。</dt>'
        +'<div style="margin-left:10px">'
	+'<dd>为了确保您的密码锁安全，请先进行手机绑定：</dd>'
	+'<dd>手机号码： &nbsp;&nbsp;<input type="text" id="phone_number" />&nbsp;&nbsp;&nbsp;&nbsp;<input type="button"  class="yes s_mb_setoption" value="绑定" onclick="mailfolder.bind_cell();" id="cell_bind_btn" /></dd>'
        +'<div style="font-color:red" id="cell_bind_notifier"></div>'
        +'</div>'
	+'</dl>'
	+'<dl>'
        +'<div style="margin-left:10px">'
        +'<dd>提示:</dd>'
        +'<dd>&nbsp;&nbsp;如果忘记了密码锁，可以用绑定的手机进行找回。</dd>'
        +'<dd>&nbsp;&nbsp;绑定手机搜狐不会收取任何费用，运营商会收取 0.1 元短信费。</dd>'
        +'</div>'
	+'</dl>'
	+'</div>';

var FoloderOperationTemplate = '<div class="cfgtemplate" style="min-height:500px">'
	+'<div class="corner">'
	+'<h4>设置密码锁<b>[<a hidefocus="true" href="main#mailMain" class="grey s_mb_main" hidefocus="true" onclick="changePanel(\'mainPage\');">返回邮箱首页</a>]</b></h4>'
	+'</div>'
	+'<dl>'
	+'<dt>设置一把密码锁，就可以给您的个人自建文件夹、代收文件夹上锁，邮件将更加安全。</dt>'
	+'<div style="margin-left:10px">'
	+'<div><div style="width:60px;float:left;">密码锁：</div><input type="password" id="lock_pass" /></div>'
	+'<div><div style="width:60px;float:left;">重复输入：</div><input type="password" id="r_lock_pass" /></div>'
        +'<div style="margin-left:15px">提示：密码区分大小写，且只能使用6-16位数字或者英文字母．</div>'
	+'</dl>'
	+'<dl>'
	+'<dt>请选择要使用密码锁的文件夹：</dt>'
        +'<div style="margin-left:10px">'
	+'#{folder_lists}'
        +'</div>'
        +'</dl>'
        +'<div style="margin-left:200px;margin-top:10px;"><input type="button" style="margin-right:8px" class="yes s_mb_setoption" value="确定" onclick="mailfolder.set_password();" /><input type="button"  class="yes s_mb_setoption" value="取消" onclick="changePanel(\'mainPage\');" /></div>'
        +'</div>';
var FoloderLockerPasswordTemplate = '<div class="cfgtemplate" style="min-height:500px">'
	+'<div class="corner">'
	+'<h4>设置密码锁<b>[<a hidefocus="true" href="main#mailMain" class="grey s_mb_main" hidefocus="true" onclick="changePanel(\'mainPage\');">返回邮箱首页</a>]</b></h4>'
	+'</div>'
	+'<dl>'
	+'<dt>设置一把密码锁，就可以给您的个人自建文件夹、代收文件夹上锁，邮件将更加安全。</dt>'
        +'<div style="margin-left:10px">'
        +'<dd style="margin-left:5px">手机号码： #{CellNumber} (绑定成功)</dd>'
        +'<dd style="margin-left:5px">输入邮箱密码验证后，即可设置密码锁： </dd>'
        +'<dd style="margin-left:5px">邮箱密码：<input type="password" style="margin-left: 5px;" id="p_password" /></dd>'
        +'<dd style="margin-left:5px" id="pass_valid_notifier"></dd>'
        +'<dd style="margin-top:10px" ><input type="button"  class="yes s_mb_setoption" value="下一步" style="margin-right:8px"  onclick="mailfolder.valid_password();" /><input type="button"  class="yes s_mb_setoption" value="取消" onclick="changePanel(\'mainPage\');" /></dd>'
        +'</div>'
	+'</dl>'
        +'</div>';
var OpenFolderLock = '<div class="cfgtemplate" style="min-height:500px">'
	+'<div class="corner">'
	+'<h4>密码锁管理<b>[<a hidefocus="true" href="main#mailMain" class="grey s_mb_main" hidefocus="true" onclick="changePanel(\'mainPage\');">返回邮箱首页</a>]</b></h4>'
	+'</div>'
	+'<dl>'
        +'<dt>该文件夹已被加锁，需开锁后才能访问</dt>'
        +'<dd style="padding:5px">密码锁：<input type="password" id="valid_pass" style="margin-right: 15px;" /><a href="javascript:;" onclick="mailfolder.forget_password()">忘记密码？</a></dd>'
        +'<dd><input type="button"  class="yes s_mb_setoption" value="确定"  style="margin-right: 8px;" onclick="mailfolder.check_password();" /><input type="button"  class="yes s_mb_setoption" value="取消" onclick="changePanel(\'mailList\', 1);" /></dd>'
        +'</dl>'
        +'</div>';

var FolderLockManger = '<div class="cfgtemplate" style="min-height:500px">'
	+'<div class="corner">'
	+'<h4>密码锁管理<b>[<a hidefocus="true" href="main#mailMain" class="grey s_mb_main" hidefocus="true" onclick="changePanel(\'mainPage\');">返回邮箱首页</a>]</b></h4>'
	+'</div>'
	+'<dl>'
        +'<dt>您已经设置了一个密码锁。<a href="javascript:;" style="font-size:12px;margin-right:10px;font-weight:normal;" onclick="mailfolder.change_password()">修改密码锁</a><a href="javascript:;" onclick="mailfolder.clear_password()" style="font-size:12px;font-weight:normal;">解除密码锁</a></dt>'
        +'<dt id="chg_notifier" style="font-size:12px"></dt>'
        +'<div id="changearea"  style="display:none;margin-left:10px;marigin-top: 10px;marigin-bottom: 10px;">'
        +'<dd style="margin-left:5px">老密码锁：<input type="password" id="old_folder_pass" /></dd>'
        +'<dd style="margin-left:5px">新密码锁：<input type="password" id="new_folder_pass" /></dd>'
        +'<dd style="margin-left:5px;margin-bottom: 10px">重复输入：<input type="password" id="reply_folder_pass" /></dd>'
        +'<div style="margin-left:50px"><input type="button"  class="yes s_mb_setoption"  style="margin-right:8px;" value="提交" onclick="mailfolder.update_password();" /><input type="button"  class="yes s_mb_setoption" value="取消" onclick="mailfolder.cancel_update();" /></div>'
        +'</div>'
        +'</dl>'
        +'<dl>'
        +'<dt>目前被加锁的文件夹包括：</dt>'
        +'<div style="margin-left:10px">'
	+'#{folder_lists}'
        +'<div style="margin-left:50px;margin-top:10px;"><input type="button"  class="yes s_mb_setoption" value="确定" onclick="mailfolder.update_folders();" style="margin-right:8px;" /><input type="button"  class="yes s_mb_setoption" value="取消" onclick="changePanel(\'mainPage\');" /></div>'
        +'</dl>'
        +'</div>'
	+'</div>';

var ClearLockManger = '<div class="cfgtemplate" style="min-height:500px">'
	+'<div class="corner">'
	+'<h4>解除密码锁<b>[<a hidefocus="true" href="main#mailMain" class="grey s_mb_main" hidefocus="true" onclick="changePanel(\'mainPage\');">返回邮箱首页</a>]</b></h4>'
	+'</div>'
	+'<dl>'
        +'<dt>再次确认密码锁才能进行解除：</dt>'
        +'<dd style="margin:10px;">密码锁：<input type="password" id="clear_valid_password" /></dd>'
        +'<dd><input type="button" style="margin-right:8px;" class="yes s_mb_setoption" value="确定" onclick="mailfolder.clear_password_action();" /><input type="button"  class="yes s_mb_setoption" value="取消" onclick="changePanel(\'mainPage\');" /></dd>'
        +'</dl>'
        +'</div>';
var FolderLockForget = '<div class="cfgtemplate" style="min-height:500px">'
	+'<div class="corner">'
	+'<h4>忘记密码锁<b>[<a hidefocus="true" href="main#mailMain" class="grey s_mb_main" hidefocus="true" onclick="changePanel(\'mainPage\');">返回邮箱首页</a>]</b></h4>'
	+'</div>'
	+'<dl>'
        +'<dt>忘记密码请按如下步骤操作：</dt>'
        +'<dd style="padding:10px">    使用 '
	+'#{cell_number}'
        +' 这个手机号码发送 pwf &nbsp; 完整用户名 &nbsp; 新密码  移动用户发送到<span class="red bold">1065750001250405</span>(联通用户发送到<span class="red bold">1066666606</span>)</dd>'
        +'<dd style="padding:10px">（收到系统下发的确认短信，则表示新密码已生效。）</dd>'
        +'</dl>'
        +'<dl>'
        +'<dt>说明：</dt>'
        +'<div style="margin-left:10px">'
        +'<dd>密码区分大小写，且只能使用 6-16 位数字或者英文字母．</dd>'
        +'<dd> 资费标准：发送指令修改密码，搜狐不收取任何费用，运营商将收取短信费。</dd>'
        +'</div>';
        +'</dl>'
        +'</div>';



var ClearCompleTemplate = '<div class="cfgtemplate" style="min-height:500px">'
	+'<div class="corner">'
	+'<h4>解除密码锁<b>[<a hidefocus="true" href="main#mailMain" class="grey s_mb_main" hidefocus="true" onclick="changePanel(\'mainPage\');">返回邮箱首页</a>]</b></h4>'
	+'</div>'
	+'<dl>'
        +'#{promt}'
        +'</dl>'
        +'</div>'

